package com.im.business.history.mapper;

import com.im.business.history.entity.MessageHistory;
import com.im.business.history.domain.MessageHistoryVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Created leijun
 * @Date 2021/10/24 11:01 上午
 */
@Mapper
public interface MessageHistoryMapper {

    void insert(MessageHistoryVO messageHistoryVO);

    List<MessageHistory> selectSingleHistoryMessage(@Param("senderId") Long senderId,
                                                    @Param("receiverId")Long receiverId,
                                                    @Param("maxOffset")Long maxOffset);

    List<MessageHistory> selectGroupHistoryMessage(@Param("groupId") Long groupId, @Param("maxOffset")Long maxOffset);
}
